package com.example.demo.struct.proxy.stat;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
public class HttpProxy {

    Http http = new Http();

    public String request() {
        preRequest();
        String result = http.request();
        System.out.println(result);
        postRequest();
        return result;
    }

    private void preRequest() {
        System.out.println("before request");
    }

    private void postRequest() {
        System.out.println("after request");
    }

}
